package net.wzw;

import lombok.extern.slf4j.Slf4j;
import net.wzw.component.MailService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @className: MailTest
 * @author: wzw
 * @date: 2024-08-15 22:35
 * @Version: 1.0
 * @description: 邮箱发送验证
 */
@RunWith(SpringRunner.class)
@SpringBootTest(classes = UserApplication.class)
@Slf4j
public class MailTest {

    @Autowired
    private MailService mailService;

    @Test
    public void testSendMail(){
        mailService.sendMail("13330987534@163.com", "欢迎来到wzw的电商平台", "123456789");
    }
}
